package com.atguigu.service.Impl;


import com.atguigu.entity.Stu;
import com.atguigu.mapper.StuDao;
import com.atguigu.service.StuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StuServiceImpl implements StuService {

    @Autowired
    private StuDao stuDao;

    @Override
    public List<Stu> getAllStudents() {
        return stuDao.selectAllStu();
    }
}